package com.example.birdfriends.pojo.comment;

import org.apache.ibatis.type.Alias;

import java.sql.Timestamp;

@Alias("comment")
public class Comment {
    private Long cid;
    private String content;
    private Timestamp createAt;
    private Long uid;
    private Long pid;

    public void printComment() {
        System.out.println("Comment{" +
                "cid=" + cid +
                ", content='" + content + '\'' +
                ", createAt=" + createAt +
                ", uid=" + uid +
                ", pid=" + pid +
                '}');
    }

    public void setCid(Long cid) {
        this.cid = cid;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setCreateAt(Timestamp createAt) {
        this.createAt = createAt;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public Long getCid() {
        return cid;
    }

    public String getContent() {
        return content;
    }

    public Timestamp getCreateAt() {
        return createAt;
    }

    public Long getUid() {
        return uid;
    }

    public Long getPid() {
        return pid;
    }
}
